<?
// handle errors
handle_error($errors);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><? echo ROOT_SIGNIN.' - '.ROOT_CMS ?></title>
<link href="css/login.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="api_js_lang.php"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<!--[if IE 6]><script type="text/javascript" src="js/png.js"></script><![endif]-->
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/jquery.metadata.js" type="text/javascript"></script>
<script type="text/javascript">
  $(document).ready(function(){
  	$("#loginf").validate({meta: "validate", onkeyup: false, 
		errorPlacement: function( label, element ) {
			element.parent().append("<br>").append(label);
		}
	
	});
  });
</script>
</head>
<body>
	<div id="wrap">
        <div id="main">
        	<div id="logo"><a href="http://www.ecomgear.cn" target="_blank"><img src="images/ecomgear.png" alt="E动力科技"></a></div>
            <div id="sign">
            <div id="memo"><? echo ROOT_CMS ?> for <? echo $config['SITE_COMPANY_'.LANG] ?></div>
                <form action="login.php" method="post" id="loginf">
                    <table>
                    	<tr><td class="r"><?=ROOT_ACCOUNT?>:</td><td><input id="aaut" name="username" value="<? echo $id==1?$temuser:'';?>" class="{validate:{required:true,  messages:{required:' <?=ROOT_INPUT_ACCOUNT?>'}}}" /><span class="red"> *</span></td></tr>
                    	<tr><td class="r"><?=ROOT_PASSWORD?>:</td><td><input name="password" type="password" id="password"  class="{validate:{required:true, minlength:6, messages:{required:' <?=ROOT_INPUT_PASSWORD?>', minlength:' <?=ROOT_CHAR_LIMIT?>'}}}" /><span class="red"> *</span></td></tr>
                    	<tr><td class="r">&nbsp;</td><td><input name="cauther" id="cauther" type="hidden" value="<? echo $codes;?>" /><?=ROOT_CALCULATE?>: <span class="red"><? echo $coder;?></span></td></tr>
                    	<tr><td class="r"><?=ROOT_ANSWER?>:</td><td><input name="cauth" id="chknumber" class="{validate:{required:true, equalTo:'#cauther', messages:{required:' <?=ROOT_INPUT_ANSWER?>',equalTo:' <?=ROOT_WRONG_ANSWER?>'}}}" /><span class="red"> *</span></td></tr>
                        <tr><td>&nbsp;</td><td><input type="image" src="<?=ROOT_SIGNIN_BUTTON?>" /></td></tr>
                    </table>
                        <input type="hidden" name="action" value="csignin" />
                </form>
        	</div>
        </div><!--main-->
    </div>
</body>
</html>
<? // echo memory_get_usage(); ?>